<?php if($category->num_rows() > 0){ ?>
<form action="<?php echo $this->config->config['base_url']; ?>/admin/category/update.htm" method="post">
	<?php
	foreach($category->result() as $rows){
		echo '<input type="hidden" name="category_id" value="' . $rows->category_id . '" />';
		echo '<label>category name</label><span>' . $rows->category_name . '</span><br />';
		echo '<label>meta keywords</label><span><textarea name="meta_keywords" cols="40" rows="5">' . $rows->meta_keywords . '</textarea></span><br />';
		echo '<label>meta title</label><span>' . $rows->meta_title . '</span><br />';
		echo '<label>meta description</label><span>' . $rows->meta_desc . '</span><br />';
	} ?>
	<input id="submit" type="submit" name="submit" value="submit" />
</form>
<?php } ?>